package com.example.viewer;

import java.util.Map;

import com.example.aggregator.RequestStat;
import com.google.gson.Gson;

public class ConsoleViewer implements Viewer {

    @Override
    public void output(double startTimeInMillis, double endTimeInMillis, Map<String, RequestStat> statDatas) {
        // 数据展示
        Gson gson = new Gson();
        String json = gson.toJson(statDatas);
        System.out.println(json);
    }
}
